home *** CD-ROM | disk | FTP | other *** search
/ Aminet 3 / Aminet 3 - July 1994.iso / Aminet / disk / misc / FitDisk2_1.lha / FitDisk.doc < prev    next >
Encoding:
Text File  |  1994-02-08  |  4.5 KB  |  97 lines

  1. FitDisk V2.0, 16-Okt-1993, Christian Stieber
  2.  
  3. FitDisk  is placed in the PUBLIC DOMAIN.  You may do whatever you want with
  4. it.
  5.  
  6. FitDisk V2.0 requires AmigaOS V37 or later.
  7. A  special  version  may  be  compiled that is functionally equivalent, but
  8. requires AmigaOS V39 or later.  This produces a smaller executable.
  9.  
  10. ---------------------------------------------------------------------------
  11.  
  12. Do you have many disks with archives on them lying around?  All those disks
  13. have  space  left  on  them,  but you don't feel like spending lots of time
  14. trying  to  figure out how to arrange the files so the will fill your disks
  15. as much as possible? Well, here is a possible solution.
  16.  
  17. Whenever  I need to put things on floppies to archive them, I put them into
  18. a  special  directory on my HD first.  Every now and then, I use FitDisk on
  19. that  directory to find out which files to copy to a floppy.  Of course, if
  20. I  delete a file from a floppy, I can use FitDisk to find files to fill the
  21. gap.   That  way,  almost  all  my  floppies  are  filled  to their maximum
  22. capacity:  they have all "1 block free" (the Amiga filesystem seems to need
  23. that free block).
  24.  
  25. FitDisk reads the directory, and tells you which files will fill up a given
  26. number of blocks.  It uses 2 criteria:
  27. 1) it attempts to use as many blocks as possible.
  28. 2) it attempts to use as few files as possible   (i.e. it attempts to use a
  29.    few big files instead of many small files).
  30.  
  31. I  tried  to  optimize  the algorithm to make it work reasonably fast (V1.0
  32. used  a  brute-force  algorithm, checking all combinations...).  However, I
  33. hope that none of my shortcuts will backfire at you...
  34.  
  35. ---------------------------------------------------------------------------
  36.  
  37. Usage:
  38.    FitDisk BLOCKS/N,DIRECTORY=DIR,OFS/S,MSDOS/S
  39.  
  40. BLOCKS:    The  number of blocks you want to fill.  Defaults to 1756 for
  41.            Amiga-disks and 1426 for MS-DOS-disks, which
  42.            is  an  empty  disk.   NOTE:   Due  to  a  bug  in  all  current
  43.            (Fast)FileSystems (up to, and including, V40.1, and probably the
  44.            ones  above  that  as well), you will get a "Disk full" error if
  45.            you  format  a  disk and then write the files that FitDisk tells
  46.            you   to  write.   THIS  IS  NOT  A  FITDISK-BUG!   The  easiest
  47.            work-around  is  to  write (n-1) files, issue a "DiskChange" (or
  48.            remove  and re-insert the disk) and write the last file.  If you
  49.            only  write one file (the longest file you can write to an empty
  50.            disk is 886272 bytes), simpy wait for the "Disk full" requester,
  51.            do the DiskChange, and "Retry".
  52.  
  53. DIRECTORY: The directory where your files are.  Subdirectories are ignored,
  54.            since  subdirectories  on  archive-disks  only  take up valuable
  55.            space.  Defaults to the current directory.
  56.  
  57. OFS:       Specify  this  if you are using DOS/0 or DOS/2 (Old file system)
  58.            disks.   I  recommend using DOS/1 or DOS/3 (Fast file system) on
  59.            all  disks,  since  it gives you more capacity.  DOS/4 and DOS/5
  60.            (Directory    caching)    disks   are   not   supported,   since
  61.            directory-caching  doesn't  make  sense  for archive-disks -- it
  62.            only  reduces the available capacity.  Besides that, it is a lot
  63.            harder  to  support  directory-  caching-disks,  since you can't
  64.            really tell how much space a file requires.
  65.  
  66. MSDOS:     Use this if you want to copy files to an MS-DOS-disk. Useful for
  67.            making distribution-disks to be uploaded to a FTP server.
  68.  
  69. FitDisk cannot be run from Workbench -- it will simply crash.
  70.  
  71. ---------------------------------------------------------------------------
  72.  
  73. I  alomst  forgot  that:   APPLY ALL DISCLAIMERS YOU CAN THINK OF.  I'M NOT
  74. RESPONSIBLE  FOR  ANYTHING THAT HAPPENS BECAUSE OR WHILE OR AFTER OR BEFORE
  75. YOU ARE USING FITDISK.
  76.  
  77. However,  if you experience any problems with this little proggy, feel free
  78. to  tell me (EMail preferred, if you send paper-mail, I won't answer unless
  79. you  include  postage  (if  you don't want to include postage, you may send
  80. A4000s,  A5000s,  gold,  silver,  platinum,  diamonds, aircraft, cars...  I
  81. don't really care).
  82.  
  83. Mail sent to this address _will_ reach me, but it may take a while:
  84.    Christian Stieber
  85.    Konradstraße 41
  86.    D-85055 Ingolstadt
  87.    (Germany)
  88.  
  89. Currently I'm a student; you might be able to reach me at
  90.    Christian Stieber
  91.    Seitzstraße 6 / Zi 306
  92.    D-80538 München
  93.    (Germany)
  94.  
  95.    Phone: 089-292732
  96.    Internet: stieber@informatik.tu-muenchen.de
  97.